package com.crm.model.jdao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.crm.model.pojo.Orderinfo;


public interface IOrderInfoDao extends CrudRepository<Orderinfo,Integer>{
	@Query("SELECT o FROM Orderinfo o")
	public List<Orderinfo> findAll();
	
	/**
	 * 根据客户ID查询订单
	 * @param oid
	 * @return
	 */
	public Orderinfo findByoId(Integer oid);
}
